package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_address
 * @author 
 */
public class SesAddress implements Serializable {
    /**
     * 每一个地址的ID
     */
    private Long addressid;

    /**
     * 地区名字
     */
    private String addressname;

    /**
     * 上级路径ID就是父ID
     */
    private Long addressparentid;

    /**
     * 顺序ID排序
     */
    private Long addressorderid;

    private static final long serialVersionUID = 1L;

    public Long getAddressid() {
        return addressid;
    }

    public void setAddressid(Long addressid) {
        this.addressid = addressid;
    }

    public String getAddressname() {
        return addressname;
    }

    public void setAddressname(String addressname) {
        this.addressname = addressname;
    }

    public Long getAddressparentid() {
        return addressparentid;
    }

    public void setAddressparentid(Long addressparentid) {
        this.addressparentid = addressparentid;
    }

    public Long getAddressorderid() {
        return addressorderid;
    }

    public void setAddressorderid(Long addressorderid) {
        this.addressorderid = addressorderid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesAddress other = (SesAddress) that;
        return (this.getAddressid() == null ? other.getAddressid() == null : this.getAddressid().equals(other.getAddressid()))
            && (this.getAddressname() == null ? other.getAddressname() == null : this.getAddressname().equals(other.getAddressname()))
            && (this.getAddressparentid() == null ? other.getAddressparentid() == null : this.getAddressparentid().equals(other.getAddressparentid()))
            && (this.getAddressorderid() == null ? other.getAddressorderid() == null : this.getAddressorderid().equals(other.getAddressorderid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAddressid() == null) ? 0 : getAddressid().hashCode());
        result = prime * result + ((getAddressname() == null) ? 0 : getAddressname().hashCode());
        result = prime * result + ((getAddressparentid() == null) ? 0 : getAddressparentid().hashCode());
        result = prime * result + ((getAddressorderid() == null) ? 0 : getAddressorderid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", addressid=").append(addressid);
        sb.append(", addressname=").append(addressname);
        sb.append(", addressparentid=").append(addressparentid);
        sb.append(", addressorderid=").append(addressorderid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}